/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sg.edu.nus.iss.pacman.webservice;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import sg.edu.nus.iss.pacman.service.MapService;
import sg.edu.nus.iss.pacman.service.UserProfile;
import sg.edu.nus.iss.pacman.service.UserProfileService;
import sg.edu.nus.iss.pacman.service.impl.MapServiceImpl;
import sg.edu.nus.iss.pacman.service.impl.UserProfileServiceImpl;

/**
 * A web service to add user profile.
 * @author fredy
 */
@WebService()
public class PacManWebService
{
    @WebMethod(operationName = "addUserProfile")
    public void addUserProfile(@WebParam(name = "userProfile") UserProfile userProfile)
    {
        UserProfileService service = new UserProfileServiceImpl();
        service.addUserProfile(userProfile);
    }

    @WebMethod(operationName = "getMapListing")
    public String[] getMapListing()
    {
        MapService service = new MapServiceImpl();
        return service.getMapListing();
    }
}
